const treasureChestCollection = 'treasureChest';

const queryTreasureChest = (findData) => async (req, res) => {
    const data = await findData({ collection: treasureChestCollection });
    if (data) res.json({ treasures: data }).end();
}

module.exports = {
    queryTreasureChest
}